package com.ztgf.commodity.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.ztgf.commodity.models.bo.CategoryShieldBrandRelationBO;
import com.ztgf.commodity.models.dto.CategoryShieldBrandRelationDTO;
import com.ztgf.commodity.models.vo.CategoryShieldBrandRelationVO;
import com.ztgf.commodity.models.vo.ShieldBrandVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 分类盾构品牌关系表映射
 *
 * @author chenyu.wang
 * @Date 2020-06-02 15:11:41
 */
@Mapper
public interface CategoryShieldBrandRelationMapper extends BaseMapper<CategoryShieldBrandRelationDTO> {


    /**
     * description: 类目盾构品牌关系列表
     * param: [page, vo]
     * author: chenyu.wang
     * date: 2020-06-02
     * return: java.util.List<com.ztgf.commodity.models.vo.CategoryShieldBrandRelationVO>
     */
    List<CategoryShieldBrandRelationVO> queryShieldBrandRelationshipList(Page<CategoryShieldBrandRelationVO> page,
                                                                         @Param("item") CategoryShieldBrandRelationBO bo);

    /**
     * description: 根据分类顶级id查询关系盾构品牌
     * param: [id] 顶级分类id
     * author: chenyu.wang
     * date: 2020-06-05
     * return: java.util.List<com.ztgf.commodity.models.vo.ShieldBrandVO>
     */
    List<ShieldBrandVO> queryShieldBrands(@Param("id") Long id);
}
